package com.design.pattern.latest.pattern.singleton;

public class Dcl {
    private volatile static Dcl dcl;

    public Dcl getInstance() {
        if (dcl == null) {
            synchronized (Dcl.class) {
                if (dcl == null) {
                    dcl = new Dcl();
                }
            }
        }
        return dcl;
    }
}
